/**
 * Copyright &copy; 2013-2015 山东易科德软件有限公司   All rights reserved.
 */
package cn.net.ecode.modules.sys.dao;

import cn.net.ecode.common.persistence.CrudDao;
import cn.net.ecode.common.persistence.annotation.MyBatisDao;
import cn.net.ecode.modules.sys.entity.Employee;

/**
 * 员工管理DAO接口
 * @author jiaoanjian、ThinkGem
 * @version 2015-4-25
 */
@MyBatisDao(entity = Employee.class)
public interface EmployeeDao extends CrudDao<Employee> {
	
	/**
	 * 根据工号获取员工信息
	 * @param employee
	 * @return
	 */
	public Employee getByEmpNo(Employee employee);
	
	/**
	 * 删除员工岗位关联数据
	 * @param employee
	 * @return
	 */
	public int deleteEmployeePost(Employee employee);
	
	/**
	 * 插入员工岗位关联数据
	 * @param employee
	 * @return
	 */
	public int insertEmployeePost(Employee employee);
	
	/**
	 * 更新员工状态
	 * @param employee
	 * @return
	 */
	public int updateEmployeeStatus(Employee employee);
}